﻿using System;
using System.Collections.Generic;
using System.Data;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ProjectSunny.Controls
{
    public partial class MenuLeftThietKeWebsite : System.Web.UI.UserControl
    {
        public string namecatethietkeweb;
        public string idcat1;
        protected void Page_Load(object sender, EventArgs e)
        {
            idcat1 = Request.QueryString["idcat1"].ToString();
            DataTable dt = DAL.DCollector.DBCollector.Instance.CallSQL1Param( "select * from tbl_Category where Category_ID1=" + idcat1, true);
            namecatethietkeweb = dt.Rows[0]["Category_Name"].ToString();

            rpt_menuleft.DataSource = DAL.DCollector.DBCollector.Instance.CallSQL1Param( "select * from tbl_Category where Category_ID2=" + idcat1, true);
            rpt_menuleft.DataBind();
        }
    }
}